package com.gjy.nacos.server.feign.fallback;

import com.gjy.nacos.server.feign.UserService;
import feign.hystrix.FallbackFactory;

import java.util.Map;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-03-08 17:27:17
 */
public class UserServiceFactory implements FallbackFactory<UserService> {

    @Override
    public UserService create(Throwable cause) {
        return new UserService() {

            @Override
            public Object find(Map<String, Object> req) {
                return null;
            }
        };
    }
}

